package com.example.studentcompetitionplatform.mapper;

import com.example.studentcompetitionplatform.entity.CompetitionArchives;
import com.example.studentcompetitionplatform.entity.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DangAnMapper {
//新增
    //查询档案是否已添加
    CompetitionArchives selectCP(CompetitionArchives competitionArchives);
    //插入
    void insertCA(CompetitionArchives competitionArchives);
//删除
    void delete(CompetitionArchives competitionArchives);
//分页查询档案信息
    List<CompetitionArchives> selectPage(@Param("pageNum") Integer pageNum,@Param("pageSize") Integer pageSize, @Param("archiveId") Integer archiveId,@Param("competitionId") Integer competitionId, @Param("userId") Integer userId);

    Integer findArchiveTotal(Integer archiveId);
}
